﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.Networks.CoAuthorNetwork"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="450" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="125"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="360"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>

        <TextBlock 
            Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
            VerticalAlignment="Top" HorizontalAlignment="Left"
            Margin="5" FontSize="15" TextWrapping="Wrap">
            Given list of mesh terms, this step will build network of orgs
            that are sponsored by shared grants in publications. 
            Citation are retrieved from medline DB through CitationMesh linkage.
            Grants are retrieved from citation-grant link 
            (publications that cites grant number). Orgs are 
            retrieved from grants via external org link.
        </TextBlock>

        <Label
            Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,0,0,0"
            FontSize="14" FontWeight="Bold" HorizontalAlignment="Left"
            VerticalAlignment="Center">
            Enter key word, one entry per line.
        </Label>

        <TextBox
            Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2"
            VerticalAlignment="Top" Margin="5" Height="350"
            TextWrapping="Wrap" x:Name="txtKeyWords" 
            AcceptsReturn="True"/>

        <Label
            Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Publication years:
        </Label>
        <StackPanel
            Grid.Row="3" Grid.Column="1" VerticalAlignment="Center"
            Orientation="Horizontal" Margin="5,0,5,0">
            <ComboBox x:Name="cboFromPubYear" Width="60" />
            <TextBlock Text="->" Margin="10,0,10,0"/>
            <ComboBox x:Name="cboToPubYear" Width="60" />
        </StackPanel>

        <Label
            Grid.Row="4" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Author dedup:
        </Label>
        <ComboBox
            Grid.Row="4" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="cboDedupPersons"></ComboBox>

        <Label
            Grid.Row="5" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Network name:
        </Label>
        <TextBox
            Grid.Row="5" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="txtNetworkName"></TextBox>

        <StackPanel
            Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2"
            VerticalAlignment="Center" HorizontalAlignment="Right"
            Orientation="Horizontal" Margin="5">
            <Button x:Name="btnCancel" Content="Cancel" Width="66" Margin="0,0,5,0" Click="btnCancel_Click" />
            <Button x:Name="btnOK" Content="OK" Width="66" Margin="0,0,5,0" Click="btnOK_Click" />
        </StackPanel>
    </Grid>
</UserControl>
